package com.tskj.leonsu.db.redis.consts;

/**
 * @notes:
 * @program: easystar2018
 * @author: JRX
 * @create: 2019-07-08 09:18
 **/
public class RedisConsts {
    public static final String REDIS_CONFIG_FILENAME = "redis.properties";
    /**
     * redis内存数据库配置文件用到的参数定义
     */
    public static final String REDIS_IP = "redis.ip";
    public static final String REDIS_PORT = "redis.port";
    public static final String REDIS_PASSWORD = "redis.passWord";
    public static final String REDIS_TIMEOUT = "redis.timeout";
    public static final String REDIS_POOL_MAXACTIVE = "jedis.pool.maxActive";
    public static final String REDIS_POOL_MAXIDLE = "jedis.pool.maxIdle";
    public static final String REDIS_POOL_MAXWAIT = "jedis.pool.maxWait";
    public static final String REDIS_POOL_TESTONBORROW = "jedis.pool.testOnBorrow";
    public static final String REDIS_POOL_TESTONRETURN = "jedis.pool.testOnReturn";
    //redis 过期时间 8小时，按秒保存 8*60*60
    //public static final int REDIS_TTL = 2000;
    public static final int REDIS_TTL = 28800;
    //过期时间延长时间节点
    public static final int REDIS_Expiration_TTL = 3600;
    //临时数据缓存时间,5分钟
    public static final int REDIS_Cache_TTL = 300;
    //导入excal access条目缓存token时间
    public static final int REDIS_FileCache_TTL = 1800;
    /**
     * redis内存数据库定义的keyName
     */
    public static final String USER_INFO = "userInfo";
    public static final String CLASSINFO = "classInfo";
    public static final String ALL_CLASSINFO = "allClassInfo";
    public static final String CLASSTYPE = "classType";
}
